﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class TrangQuanLyDonDatHang : System.Web.UI.Page
{
    
    protected void Page_Load(object sender, EventArgs e)
    {
        Control ctr = null;
        string action = Request.QueryString["action"];
        
        switch (action)
        {
            case "chuaxuly":
                
                ctr = Page.LoadControl("Controls/UC_Chuaxuly.ascx");
                
                break;
            case "chogiaohang":
                ctr = Page.LoadControl("Controls/UC_Chogiaohang.ascx");
                break;
            case "dagiaohang":
                ctr = Page.LoadControl("Controls/UC_Dagiaohang.ascx");
                break;
            default:
                ctr = Page.LoadControl("Controls/UC_Dondathang.ascx");
                break;
        }
        Panel1.Controls.Add(ctr);
        Page.Title = "Quản lý đơn đặt hàng";
    }
    public void loadControl(string control)
    {
        //ctr = Page.LoadControl(control);
    }
}